﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WinANLI
{
    public partial class student : Form
    {
        public student()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void student_Load(object sender, EventArgs e)
        {
            this.label1.Text = "啦啦啦";
            this.label2.Text = "123456";
        }

        private void label3_Click(object sender, EventArgs e)
        {
         DialogResult result = MessageBox.Show("不能删除","删除标题",MessageBoxButtons.OKCancel,MessageBoxIcon.Warning);
            if (result == DialogResult.OK)
            {
                MessageBox.Show("点确认没有用");
                this.label1.Text = "";
                this.label3.Text = "";
            }
            else
            {
                MessageBox.Show("点取消也同样没有用");
                this.label1.Text = "";
                this.label3.Text = "";
            }
        }

        private void label4_Click(object sender, EventArgs e)
        {
            DialogResult result1= MessageBox.Show("不能删除", "删除标题", MessageBoxButtons.OKCancel,MessageBoxIcon.Warning);
            if (result1 == DialogResult.OK)
            {
                MessageBox.Show("点确认没有用");
                this.label4.Text = "";
                this.label2.Text = "";
            }
            else
            {
                MessageBox.Show("点取消也同样没有用");
                this.label4.Text = "";
                this.label2.Text = "";
            }
        }
    }
}
